oracle.pgx.config

## Class PropertiesConfigParser<F extends ConfigField>

- java.lang.Object
- - oracle.pgx.config.AbstractConfigParser<F>
  - - oracle.pgx.config.PropertiesConfigParser<F>

- Type Parameters:
    `F` - the field enum this parsers uses

      public class PropertiesConfigParser<F extends ConfigField>
      extends AbstractConfigParser<F>

  A graph configuration parser which reads Java `Properties` format.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `ParseResult<F>` | `parse()` Starts parsing.
    `static <F extends ConfigField> ParseResult<F>` | `parse(Properties props, F[] fields, boolean strict)` Parses a `Properties` file into a `ParseResult` object.

    - ### Methods inherited from class java.lang.Object

      `equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### parse

          public ParseResult<F> parse()

      Starts parsing.
      Returns:
        parsing result

    - #### parse

          public static <F extends ConfigField> ParseResult<F> parse(Properties props,
                                                     F[] fields,
                                                     boolean strict)

      Parses a `Properties` file into a `ParseResult` object.
      Type Parameters:
        `F` - the field enum to use for parsing
      Parameters:
        `props` - the props the input `Properties` object
        `fields` - the fields the fields to use for parsing
        `strict` - if true, parses in strict mode
      Returns:
        the parsing result
      Throws:
        `IllegalArgumentException` - if any input errors are encountered during parsing. Non-critical errors won't resolve in an exception if not parsing in strict mode.

Copyright © 2015. All rights reserved.